#include "HiranipraShared.h"

#include "Net/Packet.h"
#include "Net/Peer.h"

#ifndef _SHARED_NET_NETEVENT_H_
#define _SHARED_NET_NETEVENT_H_

namespace Hiranipra {
	namespace Net {

		class NetEvent : public Event
		{
		public:
			enum NetEventName
			{
				Connected,
				Disconnected,
				Received
			};
		public:
			NetEvent( NetEventName name, Peer* peer, uint8 channelId, uint32 data, Packet* packet ) :
				Event( name ),
				TargetPeer( peer ), ChannelID( channelId ), Data( data ), DataPacket( packet )
			{
			}
		public:
			Peer*			TargetPeer;
			uint8			ChannelID;
			uint32			Data;
			Packet*			DataPacket;
		};

	}
}

#endif // _SHARED_NET_NETEVENT_H_
